package exam.bean;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;

public class Teacher {

    private int id;

    private String name;

    //用来显示职业名称的
    private String majorName;

    private int major;

    private double phoneNum;

    /**
     * 逻辑删除标识位
     *
     * 1 未删除
     * 0 已删除
     *
     */
    private int flag;

    //附件上传
    private MultipartFile utilFile;

    //用于存数据库的文件路径
    private String utilFilePath;

    //用于保存上传文件时的原文件名
    private String fileNameSrc;

    //用户的入职时间，此时间让用户在页面选择出来
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date majorDate;

    //入库时间，此时间是系统自动存储的时间
    private Date enterDate;

    public Date getMajorDate() {
        return majorDate;
    }

    public void setMajorDate(Date majorDate) {
        this.majorDate = majorDate;
    }

    public Date getEnterDate() {
        return enterDate;
    }

    public void setEnterDate(Date enterDate) {
        this.enterDate = enterDate;
    }

    public String getFileNameSrc() {
        return fileNameSrc;
    }

    public void setFileNameSrc(String fileNameSrc) {
        this.fileNameSrc = fileNameSrc;
    }

    public String getUtilFilePath() {
        return utilFilePath;
    }

    public void setUtilFilePath(String utilFilePath) {
        this.utilFilePath = utilFilePath;
    }

    public MultipartFile getUtilFile() {
        return utilFile;
    }

    public void setUtilFile(MultipartFile utilFile) {
        this.utilFile = utilFile;
    }

    public String getMajorName() {
        return majorName;
    }

    public void setMajorName(String majorName) {
        this.majorName = majorName;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getMajor() {
        return major;
    }

    public void setMajor(int major) {
        this.major = major;
    }

    public double getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(double phoneNum) {
        this.phoneNum = phoneNum;
    }
}
